extends Button

var link={"line":"1-1","index":0}
var game_scene

func _ready() -> void:
	game_scene=get_tree().get_first_node_in_group("game_scene")

func _on_pressed() -> void:
	if global.flag_list["level1_pass"]:
		if global.flag_list["level2_enter"]:
			link={"line":"*-1","index":0}
		else:
			link={"line":"2-1","index":0}
	global.cur_line=link["line"]
	global.cur_index=link["index"]
	game_scene._chat_in()
